﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    class Program
    {
        static void Main(string[] args)
        {
            Udisk u1 = new Udisk("金士顿64G");
            MobileHardDisk m1 = new MobileHardDisk("闪迪64G");

            u1.Info();
            u1.Read();
            u1.Write();
            Console.WriteLine("\t");
            m1.Info();
            m1.Read();
            m1.Write();
            Console.WriteLine("\t");
            Computer c = new Computer("联想");
            c.Start();
            c.Usb1 = u1;
            c.Usb2 = m1;
            c.ReadDate();
            c.WriteDate();
            c.End();
        }
    }
}
